<!DOCTYPE html>
<html lang="en">
<head>
{{--    <link rel="preconnect" href="https://cdn.staticfile.org">--}}
{{--    <link rel="preconnect" href="https://cdn.jsdelivr.net">--}}
{{--    <link rel="preconnect" href="https://fonts.googleapis.com">--}}
{{--    <link rel="preconnect" href="https://fonts.gstatic.com">--}}
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>@yield('title')</title>
    <meta name="keywords" content="FPV,穿越机,穿越机资源下载,穿越机资源站,穿越机3D打印件,穿越机模拟器下载,穿越机地面站下载,穿越机教程,微信分享,手机文件传输,免费网盘,微信视频分享助手"/>
    <meta name="description" content="WeShare，一款面向所有人的免费云分享工具，突破微信视频分享大小限制，手机/电脑/IPAD文件互传，上传/下载不限速，一键分享。让文件分享更加便利"/>
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="shortcut icon" href="/favicon.ico"/>
    <meta name="theme-color" content="#fff"/>
    <script data-ad-client="ca-pub-6243451787655828" async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    @if(isset($file))
        <title>{{ $file['name'] }}</title>

        <meta name="name" content="{{ $file['name'] }}">
        <meta itemprop="title" name="title" content="{{ $file['name'] }}">
        <meta itemprop="description" name="description" content="{{ $file['name'] }}">
        <meta itemprop="author" name="author" content="FPVOne穿越机-小哥">
        <meta itemprop="url" content="{{ shorten_url(route('drive.query', ['view' => '1', 'query' => url_encode(implode('/', $path))])) }}">
        {{--<meta itemprop="image" content="<?php the_post_thumbnail_url() ?>">--}}
        <meta data-n-head="true" data-hid="og:type" property="og:type" content="article">
        <meta data-n-head="true" data-hid="og:title" property="og:title" content="{{ $file['name'] }}">
        {{--<meta data-n-head="true" data-hid="og:image" property="og:image" content="<?php the_post_thumbnail_url() ?>">--}}
        <meta data-n-head="true" data-hid="og:url" property="og:url" content="{{ shorten_url(route('drive.query', ['view' => '1', 'query' => url_encode(implode('/', $path))])) }}">
    @endif

    <link
        rel="stylesheet"
        href="/css/mdui.min.css"
        integrity="sha384-cLRrMq39HOZdvE0j6yBojO4+1PrHfB7a9l5qLcmRm/fiWXYY+CndJPmyu5FV/9Tw"
        crossorigin="anonymous"
    />
    <link rel="stylesheet" href="https://cdn.staticfile.org/github-markdown-css/4.0.0/github-markdown.min.css">
    <link rel="stylesheet" href="{{ asset('css/mdui.css') }}">
    <link rel="stylesheet" href="{{ asset('css/notosans.css') }}">
    @stack('stylesheet')
    {!! setting('stats_code') !!}
    <script>
        const App = {
            'routes': {
                'upload_image': '{{ route('image.upload') }}',
            },
            '_token': '{{ csrf_token() }}',

        }
        const IconValues = {
            'music': 'audiotrack',
            'video': 'ondemand_video',
            'img': 'image',
            'pdf': 'picture_as_pdf',
            'default': 'insert_drive_file',
        }
    </script>
</head>
<body class="mdui-appbar-with-toolbar mdui-theme-layout-auto mdui-theme-accent-pink mdui-loaded">
<div id="top" class="anchor"></div>
@include('mdui.layouts.appbar')
@include('mdui.layouts.drawer')
<div class="mdui-container" style="min-height: 750px">
    @yield('content')
</div>
<footer class="mdui-container">
    <div class="mdui-row">
        <div class="mdui-xs-12">
            <div class="mdui-typo-subheading-opacity mdui-text-center">
                {!! marked(setting('copyright','Designed
                by [IMWNK](https://imwnk.cn/) | Powered by [OLAINDEX](https://git.io/OLAINDEX)'),true) !!}
            </div>
        </div>
    </div>
</footer>
<script
    src="/js/mdui.min.js"
    integrity="sha384-gCMZcshYKOGRX9r6wbDrvF+TcCCswSHFucUzUPwka+Gr+uHgjlYvkABr95TCOz3A"
    crossorigin="anonymous"
></script>
<script src="https://cdn.staticfile.org/clipboard.js/2.0.6/clipboard.min.js"></script>
<script src="/js/axios.min.js"></script>
<script src="/js/store.everything.min.js"></script>
<script>
    const $ = mdui.$
    window.mdui = mdui
    window.theme = {
        toggle_theme: () => {
            let darkMode = store.get('darkMode')
            if (typeof (darkMode) == 'undefined' || darkMode === null) {
                darkMode = false
            }
            if (darkMode) {
                $('body').removeClass('mdui-theme-layout-dark')
                store.set('darkMode', false)
            } else {
                $('body').addClass('mdui-theme-layout-dark')
                store.set('darkMode', true)
            }
        },
        mutation: () => {
            $('body').removeClass('mdui-theme-layout-auto')
            let darkMode = store.get('darkMode')
            if (typeof (darkMode) == 'undefined' || darkMode === null) {
                if (window.matchMedia('(prefers-color-scheme: dark)').matches) {
                    store.set('darkMode', true)
                    $('body').addClass('mdui-theme-layout-dark')
                } else {
                    store.set('darkMode', false)
                    $('body').removeClass('mdui-theme-layout-dark')
                }
            }
            if (!darkMode) {
                $('body').removeClass('mdui-theme-layout-dark')
                store.set('darkMode', false)
            } else {
                $('body').addClass('mdui-theme-layout-dark')
                store.set('darkMode', true)
            }
        },
    }
    $(function() {
        window.theme.mutation()
        let clipboard = new ClipboardJS('.clipboard')
        clipboard.on('success', function(e) {
            mdui.snackbar({
                position: 'right-top',
                message: '已复制',
            })
            console.info('Action:', e.action)
            console.info('Text:', e.text)
            console.info('Trigger:', e.trigger)
            e.clearSelection()
        })
        clipboard.on('error', function(e) {
            console.error('Action:', e.action)
            console.error('Trigger:', e.trigger)
        })
        $('#toggle-drawer').on('click', () => {
            new mdui.Drawer('#main-drawer', {
                swipe: true,
            }).toggle()
        })
        @if (session()->has('alertMessage'))
        mdui.snackbar({
            message: '{{ session()->pull('alertMessage') }}',
            position: 'right-top',
        })
        @endif
    })
</script>
@stack('scripts')

@push('scripts')
    <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
    <ins class="adsbygoogle"
         style="display:block"
         data-ad-format="fluid"
         data-ad-layout-key="-fb+5w+4e-db+86"
         data-ad-client="ca-pub-6243451787655828"
         data-ad-slot="8925134107"></ins>
    <script>
        (adsbygoogle = window.adsbygoogle || []).push({});
    </script>
@endpush
</body>
</html>

{{--mdui.min.css/mdui.min.js框架库原地址--}}

{{--https://cdn.jsdelivr.net/npm/mdui@1.0.1/dist/css/mdui.min.css--}}
{{--https://cdn.jsdelivr.net/npm/mdui@1.0.1/dist/js/mdui.min.js--}}
